﻿using B.S.BasicData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Infrastructure.Interfaces
{
    /// <summary>
    /// 仓储接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IBaseRepository<T> where T : BaseEntity
    {
        //增
        Task<int> CreateAsync(T entity);
        //删改
        Task<int> UpdateAsync(T entity);
        //查实体
        Task<T> GetModel(long Id);
        //查实体列表
        Task<IQueryable<T>> Query();

    }
}
